From: jeanlf Date: Mon, 30 Aug 2021 14:06:09 +0000 (+0200) Subject: [PATCH] fixed #1892 X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1+deb11u2^2~85 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d1f3c1cec7bae5165fbd08f4236e820681ca71d8;p=gpac.git [PATCH] fixed #1892 Gbp-Pq: Name CVE-2021-40563.patch --- diff --git a/src/filters/reframe_nalu.c b/src/filters/reframe_nalu.c index bcad22c..f672aeb 100644 --- a/src/filters/reframe_nalu.c +++ b/src/filters/reframe_nalu.c @@ -1414,8 +1414,10 @@ static void naludmx_queue_param_set(GF_NALUDmxCtx *ctx, char *data, u32 size, u3 { GF_List *list = NULL, *alt_list = NULL; GF_AVCConfigSlot *sl; - u32 i, count; - u32 crc = gf_crc_32(data, size); + u32 i, count, crc; + + if (!size) return; + crc = gf_crc_32(data, size); if (ctx->is_hevc) { switch (ps_type) {